package com.slipper.sfts.stock.dao;

import java.util.List;

import com.slipper.sfts.api.stock.bo.StockPositionBO;
import org.apache.ibatis.annotations.Param;

/**
 * 股票持仓信息表
 */
public interface StockPositionDao {
    
    int insert(StockPositionBO bo);
    
    int update(StockPositionBO bo);
    
    int delete(StockPositionBO bo);

    StockPositionBO queryBy(String id);
    
    List<StockPositionBO> queryList(StockPositionBO bo);

    StockPositionBO queryOneBy(
            @Param("memberId") String memberId,
            @Param("brokerAccountId") String brokerAccountId,
            @Param("code") String code);

    StockPositionBO lockBy(
            @Param("memberId") String memberId,
            @Param("brokerAccountId") String brokerAccountId,
            @Param("code") String code);
}
